package com.atl.enity.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2024-06-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("advertisement")
@ApiModel(value="Advertisement对象", description="")
public class Advertisement implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "广告名称")
    private String adName;

    @ApiModelProperty(value = "广告类型")
    private String adType;

    @ApiModelProperty(value = "状态")
    private String status;

    @ApiModelProperty(value = "广告开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss")
    private LocalDateTime displayPeriodStart;

    @ApiModelProperty(value = "广告结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss")
    private LocalDateTime displayPeriodEnd;

    @ApiModelProperty(value = "展示位置")
    private String displayPosition;

    @ApiModelProperty(value = "广告链接")
    private String jumpLink;

    @ApiModelProperty(value = "广告创建时间")
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "广告修改时间")
    private LocalDateTime updatedAt;

    @ApiModelProperty(value = "图片路径")
    private String photographUrl;


}
